Optimal. Leaf size=45 \[ \frac{a^2 \cosh (c+d x)}{d}-\frac{2 a b \text{sech}(c+d x)}{d}-\frac{b^2 \text{sech}^3(c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0457674, antiderivative size = 45, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {4133, 270} \[ \frac{a^2 \cosh (c+d x)}{d}-\frac{2 a b \text{sech}(c+d x)}{d}-\frac{b^2 \text{sech}^3(c+d x)}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4133
Rule 270
Rubi steps
\begin{align*} \int \left (a+b \text{sech}^2(c+d x)\right )^2 \sinh (c+d x) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (b+a x^2\right )^2}{x^4} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac{\operatorname{Subst}\left (\int \left (a^2+\frac{b^2}{x^4}+\frac{2 a b}{x^2}\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac{a^2 \cosh (c+d x)}{d}-\frac{2 a b \text{sech}(c+d x)}{d}-\frac{b^2 \text{sech}^3(c+d x)}{3 d}\\ \end{align*}
Mathematica [A] time = 0.170857, size = 59, normalized size = 1.31 \[ \frac{\text{sech}^3(c+d x) \left (3 a^2 \cosh (4 (c+d x))+9 a^2+12 a (a-2 b) \cosh (2 (c+d x))-24 a b-8 b^2\right )}{24 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.018, size = 43, normalized size = 1. \begin{align*} -{\frac{1}{d} \left ({\frac{{b}^{2} \left ({\rm sech} \left (dx+c\right ) \right ) ^{3}}{3}}+2\,ab{\rm sech} \left (dx+c\right )-{\frac{{a}^{2}}{{\rm sech} \left (dx+c\right )}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.05052, size = 88, normalized size = 1.96 \begin{align*} \frac{a^{2} \cosh \left (d x + c\right )}{d} - \frac{4 \, a b}{d{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}} - \frac{8 \, b^{2}}{3 \, d{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.53017, size = 336, normalized size = 7.47 \begin{align*} \frac{3 \, a^{2} \cosh \left (d x + c\right )^{4} + 3 \, a^{2} \sinh \left (d x + c\right )^{4} + 12 \,{\left (a^{2} - 2 \, a b\right )} \cosh \left (d x + c\right )^{2} + 6 \,{\left (3 \, a^{2} \cosh \left (d x + c\right )^{2} + 2 \, a^{2} - 4 \, a b\right )} \sinh \left (d x + c\right )^{2} + 9 \, a^{2} - 24 \, a b - 8 \, b^{2}}{6 \,{\left (d \cosh \left (d x + c\right )^{3} + 3 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} + 3 \, d \cosh \left (d x + c\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20174, size = 103, normalized size = 2.29 \begin{align*} \frac{a^{2}{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}}{2 \, d} - \frac{4 \,{\left (3 \, a b{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{2} + 2 \, b^{2}\right )}}{3 \, d{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]